\hypertarget{classAprilTags_1_1MathUtil}{}\doxysection{April\+Tags\+::Math\+Util Class Reference}
\label{classAprilTags_1_1MathUtil}\index{AprilTags::MathUtil@{AprilTags::MathUtil}}


Miscellaneous math utilities and fast exp functions.  




{\ttfamily \#include $<$Math\+Util.\+h$>$}

\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classAprilTags_1_1MathUtil_a4608d74fb82a3f33d34d5776a68f06f0}\label{classAprilTags_1_1MathUtil_a4608d74fb82a3f33d34d5776a68f06f0}} 
static float \mbox{\hyperlink{classAprilTags_1_1MathUtil_a4608d74fb82a3f33d34d5776a68f06f0}{square}} (float x)
\begin{DoxyCompactList}\small\item\em Returns the square of a value. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classAprilTags_1_1MathUtil_a3b64dde6aab6ecf71d2c98bcad03cf07}\label{classAprilTags_1_1MathUtil_a3b64dde6aab6ecf71d2c98bcad03cf07}} 
static float {\bfseries distance2D} (const std\+::pair$<$ float, float $>$ \&p0, const std\+::pair$<$ float, float $>$ \&p1)
\item 
\mbox{\Hypertarget{classAprilTags_1_1MathUtil_a17705e1965f0ec9b74a42f56619fe4c4}\label{classAprilTags_1_1MathUtil_a17705e1965f0ec9b74a42f56619fe4c4}} 
static float \mbox{\hyperlink{classAprilTags_1_1MathUtil_a17705e1965f0ec9b74a42f56619fe4c4}{mod2pi}} (float vin)
\begin{DoxyCompactList}\small\item\em Returns a result in \mbox{[}-\/Pi, Pi\mbox{]}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classAprilTags_1_1MathUtil_ac8ad112eb1de24038b8feddc7b1a9f29}\label{classAprilTags_1_1MathUtil_ac8ad112eb1de24038b8feddc7b1a9f29}} 
static float \mbox{\hyperlink{classAprilTags_1_1MathUtil_ac8ad112eb1de24038b8feddc7b1a9f29}{mod2pi}} (float ref, float v)
\begin{DoxyCompactList}\small\item\em Returns a value of v wrapped such that ref and v differ by no more than +/-\/ Pi. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classAprilTags_1_1MathUtil_a81910d8181dd119fa46533deaeb7244b}\label{classAprilTags_1_1MathUtil_a81910d8181dd119fa46533deaeb7244b}} 
static double {\bfseries fast\+\_\+atan2} (double y, double x)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Miscellaneous math utilities and fast exp functions. 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
calico/third\+\_\+party/apriltags/apriltags/Math\+Util.\+h\end{DoxyCompactItemize}
